package yunc.checkData.utils;

import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Properties;

public class PropertiesUtil {
    public static Properties load(String propertiesName){
        Properties prop=new Properties();
        try {
            prop.load(new InputStreamReader(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName) , "UTF-8"));
        } catch (IOException e) {
            e.printStackTrace();
        }
        return prop;
    }
}
